Skip to content

Comments

Metric cleanup#50

Merged
adam-fowler merged 2 commits intomainfrom
metric-cleanup
Jan 9, 2025
Merged

Metric cleanup#50
adam-fowler merged 2 commits intomainfrom
metric-cleanup

Conversation

@adam-fowler
Copy link
Member

  • Removed unnecessary meters
  • Renamed metrics label variables

dimensions: [
("status", JobMetricsHelper.JobStatus.completed.rawValue)
]
).increment()
Copy link
Member Author

@adam-fowler adam-fowler Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value in this meter can be accessed from counter swift.jobs with dimension status set to completed

Meter(
label: JobMetricsHelper.discardedMeter,
Counter(
label: JobMetricsHelper.discardedCounter,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the value never goes down we can convert this to a counter

@adam-fowler adam-fowler merged commit 1fb1585 into main Jan 9, 2025
6 checks passed
@adam-fowler adam-fowler deleted the metric-cleanup branch January 9, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants